/**
 * 链接列表
 */
Vue.component("link-list", {
    template :
        `
        <i-select v-model="curRedisLink" placeholder="请选择redis链接..." @on-change="redisLinkChange">
            <i-option v-for="o in redisLinks" :value="o.value" :label="o.name">
                <span>{{o.name}}</span>
                <span style="float:right;color:#ccc">{{o.detail}}</span>
            </i-option>
        </i-select>
        `,
    props : ["redisLinks","curRedisLink"],
    methods : {
        redisLinkChange : function (value) {
            this.$emit("selectLink", value);
        }
    }
});
